//
//  BMSliderPageController.h
//  SliderPageController
//
//  Created by bosma on 14-4-24.
//  Copyright (c) 2014年 cn.com.bosma. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SliderPageControlDelegate
@optional
//每个隐藏视图的字体
- (NSString *)sliderPageController:(id)controller hintTitleForPage:(NSInteger)page;
//是否支持标签条被选中
- (BOOL)respondsToSelector:(SEL)aSelector;
@end


@interface BMSliderPageController : UIControl {
    //背景视图
	UIImageView *backgroundView;
    //页数
	int numberOfPages;
    //当前页
	int currentPage;
    //slider视图
	UIImageView *slider;
    //开始位置
	CGPoint beganPoint;
    //是都显示隐藏视图
	BOOL hasDragged;
    //隐藏视图
	UIView *maskView;
    //显示字体
	UILabel *hintLabel;
    //代理
	id<SliderPageControlDelegate> delegate;
    //是否显示字体
	BOOL showsHint;
}

@property (nonatomic, retain) id<SliderPageControlDelegate> delegate;
@property (nonatomic, assign) BOOL showsHint;
@property (nonatomic, retain) UIImageView *backgroundView;
@property (nonatomic, retain) UIImageView *slider;

//页数
- (void)setNumberOfPages:(int)page;
//当前页
- (int)currentPage;
//设置当前页
- (void)setCurrentPage:(int)_currentPage animated:(BOOL)animated;

@end
